<ul class="layui-nav layui-nav-tree" lay-filter="demo">
	<li class="layui-nav-item <#if subtype?? && subtype == 'content'>layui-this</#if>">
		<a class="layui-nav-default" href="/admin/content.html">系统概况</a>
	</li>
	<li class="layui-nav-item layui-nav-itemed">
	<a class="layui-nav-title" 
		href="javascript:;">用户和组</a>
		<dl class="layui-nav-child">
			<dd  <#if subtype?? && subtype == 'user'>class="layui-this"</#if>>
				<a href="/admin/user/index.html">用户账号</a>
			</dd>
			<dd <#if subtype?? && subtype == 'role'>class="layui-this"</#if>>
				
				<a href="/admin/role/index.html">系统角色</a>
			</dd>
			<dd  <#if subtype?? && subtype == 'organ'>class="layui-this"</#if>>
				<a href="/admin/organ/index.html">组织机构</a>
			</dd>
		</dl>
	</li>
	<li class="layui-nav-item layui-nav-itemed">
		<a class="layui-nav-title" href="javascript:;">客服接入</a>
		<dl class="layui-nav-child">
			<dd <#if subtype?? && (maintype == 'webim' || subtype == 'im')>class="layui-this"</#if>>
				<a href="/admin/im/index.html">网站列表</a>
			</dd>
		    <#if models?? && models["sales"]?? && models["sales"] == true>
			<dd <#if subtype?? && (maintype == 'callout' || subtype == 'channel')>class="layui-this"</#if>>
				<a href="/admin/callout/index.html">语音渠道</a>
			</dd>
            </#if>
		</dl>
	</li>
	
	<#if models?? && models["weixin"]?? && models["weixin"] == true>
	<li class="layui-nav-item layui-nav-itemed">
		<a class="layui-nav-title" href="javascript:;">微信接入</a>
		<dl class="layui-nav-child">
			<dd <#if subtype?? && subtype == 'weixin'>class="layui-this"</#if>>
				<a href="/admin/weixin/index.html">公众号配置</a>
			</dd>
			<!-- 
			<dd <#if subtype?? && subtype == 'material'>class="layui-this"</#if>>
				<a href="/admin/weixin/material.html">素材管理</a>
			</dd>
			<dd <#if subtype?? && subtype == 'interf'>class="layui-this"</#if>>
				<a href="/admin/weixin/interf.html">接口管理</a>
			</dd>
			 -->
		</dl>
	</li>
	</#if>
	<#if models?? && models["callcenter"]?? && models["callcenter"] == true>
		<li class="layui-nav-item layui-nav-itemed">
			<a class="layui-nav-title" href="javascript:;">呼叫中心</a>
			<dl class="layui-nav-child">
				<dd <#if subtype?? && subtype == 'callcenter'>class="layui-this"</#if>>
					<a href="/admin/callcenter/index.html">语音平台</a>
				</dd>
			</dl>
		</li>
	</#if>
	<#if user.superuser?? && user.superuser == true>
	<li class="layui-nav-item layui-nav-itemed">
		<a class="layui-nav-title" href="javascript:;">系统日志</a>
		<dl class="layui-nav-child">
			<dd <#if subtype?? && subtype == 'syslog'>class="layui-this"</#if>>
				<a href="/admin/log/index.html">所有日志</a>
			</dd>
			<dd <#if levels?? && levels == 'ERROR'>class="layui-this"</#if>>
				<a href="/admin/log/levels.html?levels=ERROR">错误日志</a>
			</dd>
			<dd <#if levels?? && levels == 'WARN'>class="layui-this"</#if>>
				<a href="/admin/log/levels.html?levels=WARN">警告日志</a>
			</dd>
			<dd <#if levels?? && levels == 'INFO'>class="layui-this"</#if>>
				<a href="/admin/log/levels.html?levels=INFO">输出日志</a>
			</dd>
		</dl>
	</li>
	<#if models?? && models["report"]?? && models["report"] == true>
	<li class="layui-nav-item layui-nav-itemed">
		<a class="layui-nav-title" href="javascript:;">数据报表</a>
		<dl class="layui-nav-child">
			<dd <#if subtype?? && subtype == 'cube'>class="layui-this"</#if>>
				<a href="/apps/report/cube/index.html">模型设计</a>
			</dd>
			<dd <#if subtype?? && subtype == 'pbcube'>class="layui-this"</#if>>
				<a href="/apps/report/cube/pbcubeindex.html">已发布模型</a>
			</dd>
			<dd <#if subtype?? && subtype == 'report'>class="layui-this"</#if>>
				<a href="/apps/report/index.html">报表设计</a>
			</dd>
			<dd <#if subtype?? && subtype == 'pbreport'>class="layui-this"</#if>>
				<a href="/apps/report/pbreportindex.html">已发布报表</a>
			</dd>
		</dl>
	</li>
	</#if>
	
	<li class="layui-nav-item layui-nav-itemed">
		<a class="layui-nav-title" href="javascript:;">系统设置</a>
		<dl class="layui-nav-child">
			<dd <#if subtype?? && subtype == 'config'>class="layui-this"</#if>>
				<a href="/admin/config/index.html">系统设置</a>
			</dd>
			<dd <#if subtype?? && subtype == 'sysdic'>class="layui-this"</#if>>
				<a href="/admin/sysdic/index.html">字典管理</a>
			</dd>
			<dd <#if subtype?? && subtype == 'metadata'>class="layui-this"</#if>>
				<a href="/admin/metadata/index.html">元数据</a>
			</dd>
			<dd <#if subtype?? && subtype == 'template'>class="layui-this"</#if>>
				<a href="/admin/template/index.html">系统模板</a>
			</dd>
			<dd <#if subtype?? && subtype == 'email'>class="layui-this"</#if>>
				
				<a href="/admin/email/index.html">邮件通知设置</a>
			</dd>
			<dd <#if subtype?? && subtype == 'sms'>class="layui-this"</#if>>
				<a href="/admin/sms/index.html">短信通知设置</a>
			</dd>
		</dl>
	</li>
	</#if>
</ul>